import os
import fake_useragent



redis_conf_clustor = {
        "host": "172.16.16.27",
        "port": 7000,
        "db": 0,
        'user': None,
        'password': ''
        }

host = 'rm-bp1048gr5rr87uk73vo.mysql.rds.aliyuncs.com'
port =3306
user = 'lin_spider_dev'
password = 'f47bb94e792321292aUqwlsas'
database = 'lin_spider'
# Kafka
KAFKA_IP_PORT = "hadoop105:9092"
KAFKA_TOPIC_NAME_NEW = "policy_data"

#minio
endpoint = "172.16.16.24:9009"
access_key = "kv98Rp7Sjx6oRfQy6UPa"
secret_key = "zmPyYe966gYJtmS54kqAUe7r5tXzjyZti5c73xKE"
bucket_name = "policy-data"
base_path = "attachments"  # base_path 不需要以 / 开头

def get_header():
	location = os.getcwd() + '/fake_useragent.json'
	ua = fake_useragent.UserAgent()
	# print(ua.random)
	return ua.random
